<div>
	<b>Showing Guest-Flow Summary Results for <%= @group_name || "unknown" %></b>
</div>

<table class="list">
	<tr>
		<th>Month</th>
		<th># First-Timers</th>
		<th># Currently Active</th>
		<th>% Retained</th>
	</tr>

<% if ! @trackers.empty? %>

<% @trackers.group_by {|d| d.first_attend.strftime('%Y-%m')}.sort.each do |m,trackers| %>
<% @actives = trackers.select {|t| t.person.attendance_status == "Active"}.length rescue nil %>
	<tr>
		<td><%= m rescue nil %></td>
		<td><%= trackers.length rescue nil %></td>
		<td><%= @actives %></td>
		<td>
			<%= to_percent(trackers.length,@actives) rescue nil %>
		</td>
	</tr>
<% end %>
	</table>
	
<% else %>

	<tr>
		<td>
		<div id="message-black">
			No results
		</div>
		</td>
	</tr>
	</table>
<% end %>